<?php

m2import("phpinchains/util/db/DbEntityBase.php");
m2import("model/entity/SimpleViewerGalleryEntity.php");

class SimpleViewerGalleryImageEntity extends phpinchains_util_db_DbEntityBase {

    function SimpleViewerGalleryImageEntity($actionform, phpinchains_util_db_Preprocessor $preprocessor = null, phpinchains_util_db_Postprocessor $postprocessor = null)
    {
        $af = new phpinchains_ActionForm();
        $this->table = base_ApplicationContext::getInstance()->getAccessFactory()->getConnection()->getTableprefix()."_simpleViewerGalleryImage";
        $this->fields = array(
            array('id', 'int'),
            array('sviimage', 'blob'),
            array('sviimage_filename', 'string'),
            array('sviimage_type', 'string'),
            array('sviimage_size', 'int'),
            array('simpleViewerGallery_id', 'int'),
            array('svidescription', 'string'),
            array('svisorting', 'int')
        );
        $this->defaultvalues = array (
        );
        $this->index = array (
          'svidescription' => 
          array (
            0 => 'svidescription',
          ),
        );
        $this->blobs = array (
          0 => 'sviimage',
        );
        $this->foreignKeys = array(
            'simpleViewerGallery_id' => 'SimpleViewerGalleryEntity'
        );
        
        parent::phpinchains_util_db_DbEntityBase($af, $preprocessor, $postprocessor);
    }

}


?>